﻿using Microsoft.Xna.Framework;

namespace ProceduralGolf
{
    class Circle
    {
        public float Radius { get { return radius; } }
        public Vector2 Center { get { return center; } }

        private float radius;
        private Vector2 center;

        public Circle(Vector2 center, float radius)
        {
            this.center = center;
            this.radius = radius;
        }

        public bool inCircle(Vector2 point)
        {
            return ((center.X - point.X) * (center.X - point.X)) + 
                   ((center.Y - point.Y) * (center.Y - point.Y))
                   <= radius * radius;
        }
    }
}
